package com.biubiushop.exception;

public class ServiceException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String code;
	
	private String errorMsg;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public ServiceException() {
		super();
	}
	
	public ServiceException(String errorMsg) {
		super(errorMsg);
		this.code = "400";
		this.errorMsg = errorMsg;
	}
	
}
